-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
planner, executor: fix haven't track the memory usage of PointGet/BatchPointGet #21230
base: master
Are you sure you want to change the base?
Conversation
…works and enable memory tracker in point_get/batch_point_get
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
|
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
|
tryFastPlan
…tryFastPlan
works
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
|
tryFastPlan
workstryFastPlan
works
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
|
tryFastPlan
workstryFastPlan
works
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we haven't track the memroy usage of PointGet/BatchPointGet. But I think we should use another issue/pr to track it, not this. One pr should only do one thing.
Rest LGTM @zhaoxugang
/reward 300 |
This PR's linked issue is not picked. |
tryFastPlan
works
Merge canceled because a new commit is pushed. |
@zhaoxugang: Your PR has out-of-dated, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhaoxugang thanks for your contribution, please resolve conflicts and address the comments.
@@ -3161,6 +3161,32 @@ func (s *testSessionSuite2) TestStmtHints(c *C) { | |||
c.Assert(tk.Se.GetSessionVars().GetReplicaRead(), Equals, kv.ReplicaReadFollower) | |||
} | |||
|
|||
// Test memory track in POINT_GET/BATCH_POINT_GET for issue 21653 | |||
func (s *testSessionSuite2) TestPointGetMemoryTracking(c *C) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Could you directly validate the tracked memory usage?
- Please also add tests for clustered index whose type is not an integer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't directly validate the memory usage,do you have some advices to do it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, what is the difference between integer and others, why need add tests for clustered index whose type is not an integer.
@zhaoxugang Thank you for your contribution. Do you have time to solve the conflicts? If there is no reply within a week, I will close the PR and take over the job. |
# Conflicts: # executor/batch_point_get.go # executor/point_get.go
# Conflicts: # executor/point_get.go
/run-check_dev |
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/47e7c0a99de42858f6e789e806e09aae7514ffd7 |
done |
@wshwsh12 PTAL |
@zhaoxugang: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21230 +/- ##
=================================================
- Coverage 77.1798% 63.8708% -13.3090%
=================================================
Files 588 773 +185
Lines 148465 257205 +108740
=================================================
+ Hits 114585 164279 +49694
- Misses 23589 79824 +56235
- Partials 10291 13102 +2811 |
fix haven't track the memroy usage of PointGet/BatchPointGet
What problem does this PR solve?
Issue Number: close #21653
Problem Summary:
What is changed and how it works?
What's Changed:
enable memory tracker in point_get/batch_point_get
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Release note